package com.lagou.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-email", fallback = EmailFallback.class)
public interface ServiceEmailClient {

    //调用邮件微服务
    @RequestMapping("/email/{email}/{code}")
    Boolean sendEmail(@PathVariable("email") String email, @PathVariable("code") String code);
}
